/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package WebServices;

import Beans.Bebe;
import Beans.Consulta;
import Beans.Usuario;
import Logica.ConsultaXml;
import Logica.UsuarioXml;
import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author familia
 */
@WebService(serviceName = "WsConsulta")
public class WsConsulta {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "AgregarConsulta")
    public boolean AgregarConsulta(@WebParam(name = "consulta")
    Consulta consulta) {
        ConsultaXml xml = new ConsultaXml();
        //TODO write your implementation code here:
        return xml.AgregarConsulta(consulta);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "EditarConsulta")
    public boolean EditarConsulta(@WebParam(name = "consulta")
    Consulta consulta) {
        //TODO write your implementation code here:
        return false;
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "ObtenerConsultas")
    public List<Consulta> ObtenerConsultas(@WebParam(name = "bebe")
    Bebe bebe) {
        ConsultaXml xml = new ConsultaXml();
        return xml.ObtenerConsulta(bebe);
    }

    
   
}
